// map.js
Page({
  data: {
    markers: [{
      iconPath: '/images/icon/定位.gif',
      id: 0,
      latitude: 34.3964000000,
      longitude: 113.7360000000,
      width: 50,
      height: 50
    }]
  },
  markertap(e) {
    wx.getLocation({
      type: 'gcj02', // 返回可以用于wx.openLocation的经纬度
      success(res) {
        console.log(res)
        const latitude = res.latitude
        const longitude = res.longitude
        wx.openLocation({
          latitude: 33.333,
          longitude: 22.2222,
          scale: 18
        })
      }
    })
  }


})